import request from '@/utils/request'

export default {
  // 获取指定选货单的产品
  getProduct(id) {
    return request({
      url: 'sale/packingList/findPM/'+id,
      method: 'get'
    })
  },
  // 插入对应的打包信息表
  insertPackingMsg(packingMsg) {
    return request({
      url: 'sale/packingMsg/insertPackingMsg',
      method: 'post',
      data: packingMsg
    })
  },
  // 搜索打包信息表
  selectPackingMsgByPackingNum(packingNumber) {
    return request({
      url: 'sale/packingMsg/selectPMByPackingNum/'+packingNumber,
      method: 'get',
    })
  },
  // 通过分包的id查询分包下面的产品信息
  selectProductByProductId(id) {
    return request({
      url: 'sale/packingMsg/selectProductByProductId/'+id,
      method: 'get',
    })
  },
}
